import unittest
import app
from tpshops.scripts.test001 import Tp
from tpshops.tools.HTMLTestRunner import HTMLTestRunner

dic = app.BASE + "/scripts/"
demo = unittest.defaultTestLoader.discover(dic, pattern="test001.py")

file = app.BASE + "/report/tpshop001.html"

with open(file, "wb") as a:
    runner = HTMLTestRunner(a, title="实验")
    runner.run(demo)